EmergencyExerciseReviewView=Ext.extend(Ext.Panel,{
    constructor:function(a){
        Ext.apply(this,a);
        var all=this.initUIComponents();
        EmergencyExerciseReviewView.superclass.constructor.call(this,{
            id:'EmergencyExerciseReviewView',
            title:'应急预案评审',
            region:'center',
            border:'false',
            layout:'border',
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel]
        })
    },
    initUIComponents:function(){
        var yearGridComponents=new creategridview({
            topbar : {
                inputFormName : 'EmergencyExerciseReviewForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "评审人"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_revicePeople_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "应急预案评审列表",
                rowActions:true,
                listUrl : __ctxPath + "/emergency/listEmergencyExerciseReview.do?Q_emergencyId_L_EQ="+this.emergencyId,
                removeUrl : __ctxPath + "/emergency/deleteEmergencyExerciseReview.do",
                fields : [ "id", 'years','institution','revicePeople', "reviceDepartment",'reviceTime',"reviceContent", "needAdditionalResources","appraisalConclusion","needToImproveTheContent"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    width : 50,
                    hidden:true,
                    sortable : true
                }, {
                    header:"所属机构",
                    dataIndex:'institution',
                    width:100
                },{
                    header : "评审人",
                    dataIndex : "revicePeople",
                    width : 100
                }, {
                    header : "部门",
                    dataIndex : "reviceDepartment",
                    width : 70
                }, {
                    header:'评审时间',
                    dataIndex:'reviceTime',
                    width:70
                },{
                    header : "评审内容",
                    dataIndex : "reviceContent",
                    width : 100
                }, {
                    header:"需要补充资源",
                    dataIndex:"needAdditionalResources",
                    width:100
                }, {
                    header : "评审结论",
                    dataIndex : "appraisalConclusion",
                    width : 70
                },{
                    header:'需改进内容',
                    dataIndex:'needToImproveTheContent',
                    width:70
                }]
            },
            formCfg : {
                emergencyId : this.emergencyId,
                emergencyNo:this.emergencyNo,
                emergencyName:this.emergencyName
            }
        });
        return yearGridComponents;
    }
    
});